package com.dd.cloud.user.mapper.consult;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dd.cloud.user.entity.consult.WebSocketImMsg;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * webSocketIm聊天消息表 Mapper 接口
 * </p>
 *
 * @author czg
 * @since 2024-02-20
 */
public interface WebSocketImMsgMapper extends BaseMapper<WebSocketImMsg> {

    /**
     * 查询消息记录
     * @param type
     * @param userId
     * @return
     */
    Integer queryNewMessage(@Param("userId") Integer userId,
                            @Param("type") Integer type);
}
